package com.hssy.wululuaplan.mapper;

import com.hssy.wululuaplan.entity.Attendance;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 考勤表 Mapper 接口
 * </p>
 *
 * @author Mr.Hongtao
 * @since 2024-02-28
 */
@Mapper
public interface AttendanceMapper extends BaseMapper<Attendance> {

    /**
     * 查询指定课程是否已签到过
     * @param courseId 课程id
     * @return 签到的课程数量
     */
    Long selectCourseHasAttendance(@Param("courseId") Integer courseId);
}
